let defaultCity = '武汉'
try {
    if (localStorage.city) {
        defaultCity = localStorage.city
        //localStorage中的city与defaultCity关联
        //使用localStorage的地方使用try,catch包裹
    }
} catch (error) {
    
}

export default {
    city : defaultCity
}